package com.itheima.HashMap;

import java.util.HashMap;

public class HashMapDemo {
    public static void main(String[] args) throws InterruptedException {
        HashMap<String,String>hm=new HashMap<>();

        Thread t1=new Thread(()->{
            for (int i = 0; i < 25; i++) {
                hm.put(i+"","1");
            }
        });

                Thread t2=new Thread(()->{
                    for (int i = 0; i < 25; i++) {
                        hm.put(i+"","2");
                    }
                });
                t1.start();
                t2.start();

                Thread.sleep(100);
    }
}
